package Demo;

public class Test2 {
    public static void main(String[] args) {
        Cycle cycle=new Cycle();
        Rect rect=new Rect();
        Shape[] shapes={cycle,rect,rect,cycle};
        for(Shape shape:shapes){
            shape.Draw();
        }
    }
}
